<p>
  <b>Name:</b>
  <%=h computer.name %>
</p>

<p>
  <b>Os:</b>
  <%=h computer.os %>
</p>

<p>
  <b>Mac address:</b>
  <%=h computer.mac_address %>
</p>

<p>
  <b>Ip address:</b>
  <%=h computer.ip_address %>
    <span id="computerStatusImg">
	    <%if computer.status == 0%>
	    	<%= image_tag('circle_Red.png') %>
	    <%elsif computer.status == 1%>
	    	<%= image_tag('circle_Green.png') %>
	    <%elsif computer.status == 2%>
	    	<%= image_tag('circle_Orange.png') %>
	    <%end%>
    </span>
</p>

<p>
  <b>Start date:</b>
  <%=h computer.start_date %>
</p>

<p>
  <b>Status:</b>
  <%=h Computer::COMPUTER_STATUS[computer.status] %>
</p>

<p>
  <b>Network:</b>
  <% if computer.network != nil %><%=h computer.network.name %><%end%>
</p>

<p>
  <b>Room:</b>
  <% if computer.room != nil %><%=h "#{computer.room.company.name} : #{computer.room.code}" %><%end%>
</p>

  <p>
  <h2>Operations :</h2>
  
	     <% Operation.all.each do |operation| %>
      	   <%if computer.operations.include?(operation)%>
	      	  <ul><%= link_to operation.name, operation %></ul>
      	   <%end%>
		 <% end %>
	 
  </p>
  
  <p>
  <h2>Contacts :</h2>
  
		<% Contact.all.each do |contact| %>
			<%if computer.contacts.include?(contact)%>
	      	  <ul><%= link_to contact.name, contact %></ul>
			<%end%>
		<%end%>
	 
  </p>